import request from '@/utils/request'

// 查询数据映射列表
export function listDeviceDataDisplay(query) {
  return request({
    url: '/device/deviceDataDisplay/list',
    method: 'get',
    params: query
  })
}

// 查询数据映射详细
export function getDeviceDataDisplay(id) {
  return request({
    url: '/device/deviceDataDisplay/' + id,
    method: 'get'
  })
}

// 新增数据映射
export function addDeviceDataDisplay(data) {
  return request({
    url: '/device/deviceDataDisplay',
    method: 'post',
    data: data
  })
}

// 修改数据映射
export function updateDeviceDataDisplay(data) {
  return request({
    url: '/device/deviceDataDisplay',
    method: 'put',
    data: data
  })
}

// 删除数据映射
export function delDeviceDataDisplay(id) {
  return request({
    url: '/device/deviceDataDisplay/' + id,
    method: 'delete'
  })
}
